package com.entity;

import com.baomidou.mybatisplus.annotation.TableName;

@TableName("department")
public class Department {
    // 属性
    private int departmentID;
    private String departmentName;

    // 构造方法
    public Department(int departmentID, String departmentName) {
        this.departmentID = departmentID;
        this.departmentName = departmentName;
    }

    // Getter 方法
    public int getDepartmentID() {
        return departmentID;
    }

    public String getDepartmentName() {
        return departmentName;
    }

    // Setter 方法
    public void setDepartmentID(int departmentID) {
        this.departmentID = departmentID;
    }

    public void setDepartmentName(String departmentName) {
        this.departmentName = departmentName;
    }

    // toString 方法，用于打印 Department 对象的信息
    @Override
    public String toString() {
        return "Department{" +
                "departmentID=" + departmentID +
                ", departmentName='" + departmentName + '\'' +
                '}';
    }
}
